package com.qinglei.recoup.system.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@ApiModel(description = "修改密码参数")
@Data
public class UpdatePasswordParam implements Serializable {

    @NotBlank(message = "旧密码不可为空")
    @ApiModelProperty(value = "旧密码(加密的，加密方式参考登录)")
    private String oldPassword;

    @NotBlank(message = "新密码不可为空")
    @ApiModelProperty(value = "新密码(加密的，加密方式参考登录)")
    private String newPassword;
}
